FROM maven:3.6.3-openjdk-8 AS morning

WORKDIR /data/lkfly

COPY ./ ./
RUN mvn clean install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true



FROM openjdk:8

WORKDIR /data/lkfly

COPY --from=morning /data/lkfly/target/*.jar ./morning.jar

# 暴露端口
EXPOSE 8080

ENTRYPOINT ["java","-jar","-Duser.timezone=Asia/Shanghai","morning.jar"]